#ifndef ROLE_H
#define ROLE_H

#include <QWidget>


class Role : public QWidget
{
    Q_OBJECT
private:


public:
    explicit Role(QWidget *parent = nullptr);
    int hit_points = 100;
    int energy = 100;
    int x = 1;
    int y = 1;

signals:
    //移动
    void role_up();
    void role_down();
    void role_right();
    void role_left();
    //状态
    void hp_changed(int hp);
    void en_changed(int en);
public slots:

};

#endif // ROLE_H
